package com.mall.model.entity.Pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 类目
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "类目",description = "")
@TableName("pms_category")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PmsCategory implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 类目id */
    @Schema(name = "类目id",description = "")
    @TableId
    private Long id;
    /** 父类目id */
    @Schema(name = "父类目id",description = "")
    private Long parentId;
    /** 类目名称 */
    @Schema(name = "类目名称",description = "")
    private String name;
    /** 类目层级;类目层级:1级 2级 3级 */
    @Schema(name = "类目层级",description = "类目层级:1级 2级 3级")
    private Integer level;
    /** 类目状态;1：启用 0：禁用 */
    @Schema(name = "类目状态",description = "1：启用 0：禁用")
    private Integer status;
    /** 排序;顺序 */
    @Schema(name = "排序",description = "顺序")
    private Integer sort;
}